package com.example.ixform.services;



import com.example.ixform.dao.ProductionRepository;
import com.example.ixform.entities.Production;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProductionService {

    @Autowired
    ProductionRepository productionRepository;

    public List<Production> getAll(){
        return productionRepository.findAll();
    }
    public Production save(Production production){
        return productionRepository.save(production);
    }
}
